package com.loves.admin.controller;

import com.loves.admin.service.ProduceService;
import com.loves.admin.vo.ProduceVO;
import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
@RequestMapping("/produce")
@Api("产品版本")
public class ProduceController {

    @Resource
    private ProduceService produceService;

    @PostMapping("/findList")
   public List<ProduceVO> findList(){
       return produceService.findList();
   }
}
